//
//  AXFLeftSeletedCell.m
//  AIXF
//
//  Created by Macx on 2017/7/10.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFLeftSeletedCell.h"


@implementation AXFLeftSeletedCell

- (void)drawRect:(CGRect)rect {
    
    // 绘制矩形框
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    CGContextAddRect(context, rect);
    
    // 设置颜色
    [[UIColor whiteColor] setFill];
    
    // 渲染
    CGContextFillPath(context);
    
    // 左侧的小矩形框
    CGFloat rectHeigth = rect.size.height/2;
    
    CGFloat rectY = (rect.size.height - rectHeigth) / 2;
    
    CGContextAddRect(context, CGRectMake(0, rectY, 4, rectHeigth));
    
    [[UIColor orangeColor] setFill];
    
    CGContextFillPath(context);
    
}

@end
